import request from '@/utils/request'

/**
 * 查询调度日志列表
 * @param {Object} query - 查询参数对象
 * @returns {Promise} 返回调度日志列表数据的Promise对象
 */
export function listJobLog(query) {
  return request({
    url: '/monitor/jobLog/list',
    method: 'get',
    params: query
  })
}

/**
 * 删除调度日志
 * @param {string|number} jobLogId - 调度日志ID
 * @returns {Promise} 返回删除结果的Promise对象
 */
export function delJobLog(jobLogId) {
  return request({
    url: '/monitor/jobLog/' + jobLogId,
    method: 'delete'
  })
}

/**
 * 清空调度日志
 * @returns {Promise} 返回清空结果的Promise对象
 */
export function cleanJobLog() {
  return request({
    url: '/monitor/jobLog/clean',
    method: 'delete'
  })
}

